package com.module03.Q5_Poker;

import java.util.ArrayList;

//玩家类
//id的构造方法
//pokers list 为玩家手中的牌
public class Q5_PokerPerson {
    private int id;
    private ArrayList<String> pokers =new ArrayList<>();

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ArrayList<String> getPokers() {
        return pokers;
    }

    public void setPokers(ArrayList<String> pokers) {
        this.pokers = pokers;
    }

    public Q5_PokerPerson(int id) {
        this.id = id;
    }

    public void addCard(String card){
        this.pokers.add(card);
    }
}
